home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MATHS
/
RLAB
/
RLAB125.ZIP
/
!RLaB
/
help_sz
/
srand
< prev
next >
Wrap
Text File
|
1994-02-21
|
430b
|
20 lines
srand:
Syntax: srand ( )
srand ( a )
srand ( "clock" )
Description:
Srand sets the seed for the random number generator.
`srand()' sets the seed to the original value (the last value
given to srand(), or the default value, 1).
`srand( "clock" )' sets the seed based upon the machines clock
value. This provides users a way of picking a unique seed each
time.
Srand uses the RANLIB subroutine SETALL.
See Also: rand